package com.newtouch.bxzs.business.message.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 广告的返回参数BO类
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2020/12/18 14:32</td>
 * <td>liman</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author liman
 * @version 1.0.0
 * @since 1.0.0
 */
@Data
@ApiModel("广告BO类")
public class AdvertisementBO implements Serializable {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 2421563392936043429L;

    @ApiModelProperty(value = "主键")
    private String advertisementId;

    @ApiModelProperty(value = "创建人id")
    private String createUserId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "修改人id")
    private String updateUserId;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "广告名称")
    private String advertisementName;

    @ApiModelProperty(value = "广告类型(1：启动页 2：首页)")
    private String advertisementType;

    @ApiModelProperty(value = "发布状态，1：未发布，2：已发布，3：已结束，4：已取消，5：已撤销")
    private String publishStatus;

    @ApiModelProperty(value = "广告跳转链接")
    private String advertisementUrl;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date publishTime;

    @ApiModelProperty(value = "撤销时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date revokeTime;

    @ApiModelProperty(value = "每张广告展示2秒(可配置）")
    private Integer limitTime;

    @ApiModelProperty(value = "缩略图地址")
    private String attachmentUrls;

}
